/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
define(function(){
    return function(htmlText){
        var ui=null;
        this.getUI=function(){
            return ui;
        };
        this.setUI=function(_ui){
            ui=_ui;
        };
        this.repaint=function(){
            
        }
        this.getId=function(){
            return $($(ui).get(0).firstChild).attr("id");
        }
        this.setId=function(id){
            $($(ui).get(0).firstChild).attr("id", id);
        }
        ui=document.createElement("span");
        $(ui).html(htmlText);
        this.ui=ui;
        return this;
    };
});

